#!/usr/bin/env python3
# _*_coding:utf-8_*_
# cockroach
# email:donnie.fan@foxmail.com

import shutil

# f1 = open("/Users/Donnie/Documents/workspace/code/learn/python/day-5/Readme.md",'r')
#
# f2 = open("/Users/Donnie/Documents/workspace/code/learn/python/day-6/R.md",'w')
#
# shutil.copyfileobj(f1,f2)
#将文件内容拷贝到另一个文件中，可以部分内容


# shutil.copyfile("/Users/Donnie/Documents/workspace/code/learn/python/day-5/Readme.md",
#                 "/Users/Donnie/Documents/workspace/code/learn/python/day-6/R1.md")
#拷贝文件


# shutil.copymode()
#仅拷贝权限。内容、组、用户均不变
# pass
#
# shutil.copystat()
#拷贝状态的信息，包括：mode bits, atime, mtime, flags
# pass
#
# shutil.copy()
#拷贝文件和权限
# pass

#shutil.copy2()
#拷贝文件和状态信息
#pass

# shutil.ignore_patterns(*patterns)
# shutil.copytree(src, dst, symlinks=False, ignore=None)
# 递归的去拷贝文件
# pass

# shutil.rmtree(path[, ignore_errors[, onerror]])
# 递归的去删除文件
# pass

# shutil.move(src, dst)
# 递归的去移动文件
# pass